/*
 * @Date: 2022-03-19 00:44:34
 * @Author: 1365595476@qq.com
 * @LastEditors: 1365595476@qq.com
 * @LastEditTime: 2022-03-19 00:44:35
 */
/*
 * @Date: 2022-03-17 01:14:24
 * @Author: 1365595476@qq.com
 * @LastEditors: 1365595476@qq.com
 * @LastEditTime: 2022-03-19 00:42:17
 */
// import Welcome from '@/pages/Welcome'
import NotFound from '@/pages/NotFound'
import asyncImportComp from './asyncImportComp'

export const routes = [
  {
    path: '/',
    exact: true,
    component: asyncImportComp(() => import('@/pages/Welcome')),
    meta: {
      title: '欢迎页',
      role: ['all']
    }
  },
  {
    path: '/home',
    exact: true,
    component: asyncImportComp(() => import('@/pages/Welcome')),
    meta: {
      title: '首页',
      role: ['admin']
    }
  },
  {
    path: '*',
    exact: true,
    component: NotFound,
    meta: {
      title: '找不到页面',
      role: ['all']
    }
  }
]
